home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 61
/
Volume 61 - JOGO DISK .iso
/
Games
/
fruit_cake_decoration.swf
/
scripts
/
DefineButton2_381
/
BUTTONCONDACTION on(release).as
next >
Wrap
Text File
|
2008-03-12
|
4KB
|
147 lines
on(release){
if(_root.bread_1 == "on")
{
_root.step1 = "on";
_root.mess_1.gotoAndStop(1);
_root.mes_back.play();
}
else if(_root.bread_2 == "on")
{
_root.step1 = "on";
_root.mess_1.gotoAndStop(1);
_root.mes_back.play();
}
else if(_root.bread_3 == "on")
{
_root.step1 = "on";
_root.mess_1.gotoAndStop(1);
_root.mes_back.play();
}
else if(_root.bread_4 == "on")
{
_root.step1 = "on";
_root.mess_1.gotoAndStop(1);
_root.mes_back.play();
}
else if(_root.bread_5 == "on")
{
_root.step1 = "on";
_root.mess_1.gotoAndStop(1);
_root.mes_back.play();
}
else if(_root.bread_6 == "on")
{
_root.step1 = "on";
_root.mess_1.gotoAndStop(1);
_root.mes_back.play();
}
else if(_root.bread_1 == "off" && _root.bread_2 == "off" && _root.bread_3 == "off" && _root.bread_4 == "off" && _root.bread_5 == "off" && _root.bread_6 == "off")
{
_root.mess_1.gotoAndPlay(2);
_root.mes_back.play();
}
if(_root.step1 == "on")
{
if(_root.cream_1 == "on")
{
_root.step2 = "on";
_root.mess_2.play();
_root.mess_3.gotoAndPlay(2);
_root.mes_back.play();
}
else if(_root.cream_2 == "on")
{
_root.step2 = "on";
_root.mess_2.play();
_root.mess_3.gotoAndPlay(2);
_root.mes_back.play();
}
else if(_root.cream_3 == "on")
{
_root.step2 = "on";
_root.mess_2.play();
_root.mess_3.gotoAndPlay(2);
_root.mes_back.play();
}
else if(_root.cream_4 == "on")
{
_root.step2 = "on";
_root.mess_2.play();
_root.mess_3.gotoAndPlay(2);
_root.mes_back.play();
}
else if(_root.cream_5 == "on")
{
_root.step2 = "on";
_root.mess_2.play();
_root.mess_3.gotoAndPlay(2);
_root.mes_back.play();
}
else if(_root.cream_6 == "on")
{
_root.step2 = "on";
_root.mess_2.play();
_root.mess_3.gotoAndPlay(2);
_root.mes_back.play();
}
if(_root.cream_1 == "off" && _root.cream_2 == "off" && _root.cream_3 == "off" && _root.cream_4 == "off" && _root.cream_5 == "off" && _root.cream_6 == "off")
{
_root.mess_2.gotoAndPlay(2);
_root.mes_back.play();
}
}
if(_root.step2 == "on")
{
if(_root.step3 == "off")
{
_root.non = "mid";
_root.mess_4.gotoAndPlay(2);
_root.mess_3.gotoAndStop(1);
_root.item_mc.gotoAndStop(2);
_root.step3 = "pass";
}
if(_root.non_1 == "on")
{
_root.step3 = "on";
_root.mess_3.gotoAndStop(1);
_root.mess_4.gotoAndPlay(2);
_root.mes_back.play();
}
else if(_root.non_2 == "on")
{
_root.step3 = "on";
_root.mess_3.gotoAndStop(1);
_root.mess_4.gotoAndPlay(2);
_root.mes_back.play();
}
else if(_root.non_3 == "on")
{
_root.step3 = "on";
_root.mess_3.gotoAndStop(1);
_root.mess_4.gotoAndPlay(2);
_root.mes_back.play();
}
else if(_root.non_4 == "on")
{
_root.step3 = "on";
_root.mess_3.gotoAndStop(1);
_root.mess_4.gotoAndPlay(2);
_root.mes_back.play();
}
else if(_root.non_5 == "on")
{
_root.step3 = "on";
_root.mess_3.gotoAndStop(1);
_root.mess_4.gotoAndPlay(2);
_root.mes_back.play();
}
else if(_root.non_6 == "on")
{
_root.step3 = "on";
_root.mess_3.gotoAndStop(1);
_root.mess_4.gotoAndPlay(2);
_root.mes_back.play();
}
}
}